package com.situ.stl.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
public class Coach {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "教练姓名不能为空")
    @Size(max = 50, message = "教练姓名不能超过50个字符")

    private String name;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String phone;

    private String wechat;
    private String recomm;
    private String photo;
}
